<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterCouponBrandAddMark extends Migrator
{
    public function up()
    {
        $sql = <<<SQL
ALTER TABLE `coupon_brand`
ADD COLUMN `discount_logo`  decimal(3,1) NOT NULL DEFAULT 0.00 COMMENT '折扣标识';
SQL;
        $this->execute($sql);
    }

    public function down()
    {
        $this->table('coupon_brand')->removeColumn('discount_logo');
    }
}
